package com.qinghe.pro.spring;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.log4j.Logger;

import com.qinghe.pro.Constants;

/**
 * 启动监听器
 * 
 * @author longfei
 */
public class WebStartListenter implements ServletContextListener {
    private static final Logger logger = Logger.getLogger(WebStartListenter.class);

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
        try {
			Constants.load();
        } catch (Exception e) {
        	logger.error("Invalid 'initConfig' Exception:", e);
        }
	}

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
	}

}
